#include<stdio.h>
int main()
{
	int sum = 0, a;

	scanf("%d", &a);

	for (sum = 1; sum <= 4; ) {
		if (a < 25) {
			sum += 1;
			printf("Wrong!Too low!\n");
		}

		if (a > 25) {
			sum += 1;
			printf("Wrong!Too high!\n");
		}

		if (a == 25) {
			
			printf("Right!\n");
			break;
		}
		scanf("%d", &a);
		
	}
	printf("You guess %d times\n", sum);
	printf("The game is over!");

	return 0;
}
